summaryrefslogtreecommitdiffstats
path: root/src/audio_core/device/audio_buffer.h
blob: 7128ef72a7f3a0038f8c1adf4be200e9caa9631e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// SPDX-FileCopyrightText: Copyright 2022 yuzu Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later

#pragma once

#include "common/common_types.h"

namespace AudioCore {

struct AudioBuffer {
    /// Timestamp this buffer started playing.
    u64 start_timestamp;
    /// Timestamp this buffer should finish playing.
    u64 end_timestamp;
    /// Timestamp this buffer completed playing.
    s64 played_timestamp;
    /// Game memory address for these samples.
    VAddr samples;
    /// Unqiue identifier for this buffer.
    u64 tag;
    /// Size of the samples buffer.
    u64 size;
};

} // namespace AudioCore